<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_name" class="form-control" name="row[car_name]" type="text" value="{$row.car_name}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_image" class="form-control" size="50" name="row[car_image]" type="text" value="{$row.car_image}" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-car_image" class="btn btn-danger plupload" data-input-id="c-car_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-car_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-car_image" class="btn btn-primary fachoose" data-input-id="c-car_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-car_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-car_image"></ul>
            <span style="color: red;">*车辆图片尺寸344*260</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Banner')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-banner" class="form-control" size="50" name="row[banner]" type="text" value="{$row.banner}" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-banner" class="btn btn-danger plupload" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-banner"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-banner" class="btn btn-primary fachoose" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-banner"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-banner"></ul>
            <!--            <span style="color: red;">*车辆图片尺寸344*260</span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--            {:Form::select('row[brand_id]', $brandList, null, ['data-rule'=>'required'])}-->
            <input id="c-brand_id" data-rule="required" data-source="car_cate/selectpage" data-field="cate_name"  data-params='{"custom[type]":"1"}' data-search-field="cate_name"  data-multiple="false" data-pagination="true" data-order-by="sort desc" data-page-size="10"  class="form-control selectpage" name="row[brand_id]" type="text" value="{$row.brand_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--            {:Form::select('row[type_id]', $typeList, null, ['data-rule'=>'required'])}-->
            <input id="c-type_id" data-rule="required" data-source="car_cate/selectpage" data-field="cate_name" data-params='{"custom[type]":"3"}' data-search-field="cate_name" data-multiple="false" data-pagination="true" data-order-by="sort desc"  data-page-size="10"  class="form-control selectpage" name="row[type_id]" type="text" value="{$row.type_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Model_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--            {:Form::select('row[model_id]', $configureList, null, ['data-rule'=>'required'])}-->
            <input id="c-model_id" data-rule="required" data-source="car_cate/selectpage" data-field="cate_name"  data-params='{"custom[type]":"2"}' data-search-field="cate_name"  data-multiple="false" data-pagination="true" data-order-by="sort desc" data-page-size="10"  class="form-control selectpage" name="row[model_id]" type="text" value="{$row.model_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_site')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_site" class="form-control" name="row[car_site]" type="number" value="{$row.car_site}" data-rule="required" min="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_gate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_gate" class="form-control" name="row[car_gate]" type="number" value="{$row.car_gate}" data-rule="required" min="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_gear')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::select('row[car_gear]', $gearlist, $row.car_gear, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Drive')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[drive]', ['1' => '两驱', '2' => '四驱'], $row.drive, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Displacement')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-displacement" class="form-control" name="row[displacement]" type="text" value="{$row.displacement}" data-rule="required" style="width: 70%">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_introduction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-car_introduction" class="form-control" rows="5" name="row[car_introduction]" cols="50">{$row.car_introduction}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[radio]', $statusList, $row.status, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_hot')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[is_hot]', [1=>'否',2=>'是'], $row.is_hot, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
